package com.atguigu.campusintelligentassistantsystem.repository;

import com.atguigu.campusintelligentassistantsystem.entity.LeaveStatus;
import com.atguigu.campusintelligentassistantsystem.entity.LeaveType;
import com.atguigu.campusintelligentassistantsystem.entity.TeacherLeaveApply;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacherLeaveApplyRepository extends JpaRepository<TeacherLeaveApply, Long> {
    List<TeacherLeaveApply> findByStatus(LeaveStatus status);
    List<TeacherLeaveApply> findByLeaveType(LeaveType leaveType);
}